package com.BookmanageSystem.entity;

import java.sql.Date;

public class Book {
    private int id;
    private int userId;
    private String bookName;
    private String typeName;
    private String author;
    private int state;
    private Date outDate;
    private Date inDate;

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public Date getInDate() {
        return inDate;
    }

    public void setInDate(Date inDate) {
        this.inDate = inDate;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getBookName() {
        return bookName;
    }

    public void setBookName(String bookName) {
        this.bookName = bookName;
    }
    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public Date getOutDate() {
        return outDate;
    }

    public void setOutDate(Date outDate) {
        this.outDate = outDate;
    }

    @Override
    public String toString() {
        return "Book{" +
                "id=" + id +
                ", userId=" + userId +
                ", bookName='" + bookName + '\'' +
                ", typeName='" + typeName + '\'' +
                ", author='" + author + '\'' +
                ", state=" + state +
                ", outDate=" + outDate +
                ", inDate=" + inDate +
                '}';
    }
}
